From: Jasper St. Pierre Date: Wed, 5 Sep 2012 15:34:01 +0000 (-0300) Subject: autorunManager: Don't show a right-click menu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5876 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e71129aa6879b62a04d2fc3b43ff25edd6611987;p=gnome-shell.git autorunManager: Don't show a right-click menu Activating the source shouldn't be possible, and neither should removing it. https://bugzilla.gnome.org/show_bug.cgi?id=683438 --- diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index 38f93bc8c..541c75ca7 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -284,6 +284,10 @@ const AutorunResidentSource = new Lang.Class({ this._notification = new AutorunResidentNotification(this._manager, this); }, + buildRightClickMenu: function() { + return null; + }, + addMount: function(mount, apps) { if (!shouldAutorunMount(mount, false)) return; diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index fc39e661b..f5fdeb447 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2340,7 +2340,9 @@ const MessageTray = new Lang.Class({ Lang.bind(this, this._onSummaryBoxPointerContentUpdated)); this._sourceDoneDisplayingId = this._summaryBoxPointerItem.source.connect('done-displaying-content', Lang.bind(this, this._escapeTray)); - if (this._clickedSummaryItemMouseButton == 1) { + + let hasRightClickMenu = this._summaryBoxPointerItem.rightClickMenu != null; + if (this._clickedSummaryItemMouseButton == 1 || !hasRightClickMenu) { let newQueue = []; for (let i = 0; i < this._notificationQueue.length; i++) { let notification = this._notificationQueue[i];